﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ManpowerOrg.Presentation_Control
{
	public partial class MPMSite : System.Web.UI.MasterPage
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			if (Session["Ticket"] == null) Session["Ticket"] = "UnAuthen";
			if (ReferenceEquals(Session["Ticket"], "UnAuthen") || ReferenceEquals(Session["Ticket"], "TimeOut"))
			{
				Response.Redirect("Login.aspx");
			}
		}

		protected void btnSignOut_Click(object sender, EventArgs e)
		{
			Session["Ticket"] = "TimeOut";
			Response.Redirect("Login.aspx");
		}
	}
}